package com.maomao.beans;

import java.sql.SQLException;

import com.maomao.db.DbConnection;

public class modifyUser {
	void modifyName(User user,String name)
	{
		String sql="";
		sqlExecute(sql);
	}
	
	void modifyPasswd(User user,String passwd)
	{
		String sql ="";
		sqlExecute(sql);
		
	}
	
	void sqlExecute(String sql)
	{
		DbConnection db = new DbConnection();
		try {
			db.update(sql);
			db.close();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}
